/// ---------------------------------------------
/// 
/// 江懷玉
///
///
///
var w_width = 700;
var w_height = 600;
var data_Cache = null;
function myEdit(url, entity, id, obj) {
    if (typeof (entity) == "undefined") {
        alert("实体参数不存在，请检查!");
        return;
    } else {
        //url.indexOf("?") > 0 ? (url + "&entity=" + entity) :
        if (url.indexOf("?") > 0) {
            url = url + "&entity=" + entity;
        } else {
            url = url + "?entity=" + entity;
        }
    }

    if (typeof (id) != "undefined") {
        if (id != 0) {
            url = url + "&id=" + id;
        }
    }
    if (obj) {
        data_Cache = obj;
    }

    $("#Editor")[0].src = url;

    $('#dwin').window('open', { width: w_height, height: w_height });

}

//function setData(key, obj) {
//    $.data(key, obj);
//}

//function getData(key) {
//    return $.data(key);
//}
function myUploadWindows(url) {
    $("#Editor")[0].src = url;
    $('#dwin').window('open', {title:"批量文件上传", width: 600, height: 500 });
}
function mySave() { 
    $("#Editor")[0].src = url + "?entity=" + entity + "&id=" + id;
    $('#dwin').window('open');
}

//-------------------------
// 数据刷新
//-------------------------
function RefreshList() {
    this.location = this.location + "&r=" + Math.random();
}

